<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>

<script>
    function Fn(){
        // {}
        // {}[[Prototype]] = Fn.prototype; (所有的实例化对象同可以通过原型属性 -> 访问构造函数的原型对象(动态方法))
        // this -> {}
        console.log("this",this);

        // return this;
    }

    var res = new Fn();
    console.log(res);

    var res = new Fn();
    console.log(res);



    var a = function(){
        console.log(this);
    }

    var arr = [1,2,3,a];
    var obj = {
        a:a,
        b:1,
    }

    
    a();
    arr[3]();
    obj.a();
    document.onclick = a;

    // setTimeout(function(){

    // },100);

</script>
</html>